package com.bulemobi.util;


public class LogUtil {
    public static boolean isDebug = true;
    private static final String TAG = "DZ_TAG";

	public static void v(String tag, String msg) {
		if (isDebug)
            try {
                android.util.Log.v(tag, msg);
            } catch (Exception e) {
                e.printStackTrace();
            }
    }

	public static void v(String tag, String msg, Throwable t) {
		if (isDebug)
            try {
                android.util.Log.v(tag, msg, t);
            } catch (Exception e) {
                e.printStackTrace();
            }
    }

	public static void d(String tag, String msg) {
		if (isDebug)
			android.util.Log.d(tag, msg);
	}
	
	public static void d(String msg) {
		if (isDebug)
			android.util.Log.d(TAG, msg);
	}

	public static void d(String tag, String msg, Throwable t) {
		if (isDebug)
            try {
                android.util.Log.d(tag, msg, t);
            } catch (Exception e) {
                e.printStackTrace();
            }
    }

	public static void i(String tag, String msg) {
		if (isDebug)
            try {
                android.util.Log.i(tag, msg);
            } catch (Exception e) {
                e.printStackTrace();
            }
    }

	public static void i(String tag, String msg, Throwable t) {
		if (isDebug)
            try {
                android.util.Log.i(tag, msg, t);
            } catch (Exception e) {
                e.printStackTrace();
            }
    }

	public static void w(String tag, String msg) {
		if (isDebug)
            try {
                android.util.Log.w(tag, msg);
            } catch (Exception e) {
                e.printStackTrace();
            }
    }

	public static void w(String tag, String msg, Throwable t) {
		if (isDebug)
            try {
                android.util.Log.w(tag, msg, t);
            } catch (Exception e) {
                e.printStackTrace();
            }
    }

	public static void e(String tag, String msg) {
		if (isDebug)
            try {
                android.util.Log.e(tag, msg);
            } catch (Exception e) {
                e.printStackTrace();
            }
    }

	public static void e(String tag, String msg, Throwable t) {
		if (isDebug)
            try {
                android.util.Log.e(tag, msg, t);
            } catch (Exception e) {
                e.printStackTrace();
            }
    }
	
	public static void e(String msg, Throwable t) {
		if (isDebug)
            try {
                android.util.Log.e(TAG, msg, t);
            } catch (Exception e) {
                e.printStackTrace();
            }
    }
}
